package org.dr.st_docker.bean;

import org.dr.st_docker.bean.People;



public class PeopleFactory {
    //非静态工厂
    public People createPeople(){
        People p=new People();
        p.setId(5);
        p.setName("阿七");
        p.setAge(22);
        return p;
    }

    //静态工厂
    public static People createPeople1(){
        People p=new People();
        p.setId(6);
        p.setName("阿八");
        p.setAge(23);
        return p;
    }
}
